package com.cp.autoconfigure.gray;

import com.cp.support.gray.GrayWebInterceptorAdder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 灰度Web请求自动配置
 * -添加拦截器,对灰度标记使用TransmittableThreadLocal在请求的生命周期有效,请求结束后清除
 *
 * @author YangXiaoLong
 * 2022/11/4 1:10
 */
@Configuration
@ConditionalOnClass(name = {"javax.servlet.ServletRequest"})
@Import(value = {GrayWebInterceptorAdder.class})
public class GrayWebInterceptorAutoConfiguration {

}
